﻿using System;
using System.Windows.Forms;

namespace UIapp
{
    static class Program
    {
        public static Form mainfrm = null;
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            Comun.usuario = new GSQ.BusinessEntities.USUARIOS { ID = 1, NOMBRE = "USUARIO", APELLIDO = "GENERAL" };
            mainfrm = new frmMain();
            Application.Run(mainfrm);
        }

        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            Comun.ShowMessage(e.Exception);
        }
    }
}
